package com.macro.mall.oms.service.order.bo;

import com.macro.mall.common.api.input.BaseInput;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 新增订单input
 *
 * @author xuyanjun
 * @date 2019-12-10
 */
@Valid
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class InsertOrderInput extends BaseInput {


    /**
     *
     */
    @NotNull(message = "不能为空。")
    private Long memberId;

    /**
     * 订单编号
     */
    private String orderSn;

    /**
     * 用户帐号
     */
    private String memberUsername;

    /**
     * 订单总金额
     */
    private BigDecimal totalAmount;

    /**
     * 应付金额（实际支付金额）
     */
    private BigDecimal payAmount;

    /**
     * 收货人姓名
     */
    @NotBlank(message = "收货人姓名不能为空。")
    private String receiverName;

    /**
     * 收货人电话
     */
    @NotBlank(message = "收货人电话不能为空。")
    private String receiverPhone;

    /**
     * 收货人邮编
     */
    private String receiverPostCode;

    /**
     * 省份/直辖市
     */
    private String receiverProvince;

    /**
     * 城市
     */
    private String receiverCity;

    /**
     * 区
     */
    private String receiverRegion;

    /**
     * 详细地址
     */
    private String receiverDetailAddress;

    /**
     * 订单备注
     */
    private String note;

    private BigDecimal commission;
}
